package com.admin.common.enums;

/**
 * 模块
 */
public enum DeclareModuleEnum {

    M00000("M00000", "基本情况"),

    M10000("M10000", "制度机制"),
        M10001("M10001", "组织建设"),
        M10002("M10002", "气象员信息"),
        M10003("M10003", "重点单位"),
        M10004("M10004", "气象服务站"),
        M10005("M10005", "传播网络"),
        M10006("M10006", "组织保障"),

    M20000("M20000", "防灾准备"),
        M20001("M20001", "风险地图"),
        M20002("M20002", "应急预案"),
        M20003("M20003", "应急演练"),

    M30000("M30000", "防灾设施"),
        M30001("M30001", "信息收发"),
        M30002("M30002", "避灾设施"),
        M30003("M30003", "防雷警示"),

    M40000 ("M40000", "科普培训"),
        M40001("M40001", "培训"),
        M40002("M40002", "科普"),

    M50000 ("M50000", "典型案例"),

    M60000 ("M60000", "区/县气象局评分"),
        M60001 ("M60001", "气象信息上报统计"),
        M60002 ("M60002", "气象监测设施建设"),
        M60003 ("M60003", "气象灾害应急准备认证"),
        M60004 ("M60004", "居民住宅防雷装置安装"),
        M60005 ("M60005", "公共场所防雷装置安装"),
        M60006 ("M60006", "气象基本知识知晓率"),


    M70000 ("M70000", "提标升级"),
        M70001 ("M70001", "预警分乡镇"),
        M70002 ("M70002", "网格+气象"),
        M70003 ("M70003", "应急联动反馈"),
        M70004 ("M70004", "复核检查"),
        M70005 ("M70005", "宣传指导")
    ;

    private String key;
    private String name;

    DeclareModuleEnum(String key, String name) {
        this.key = key;
        this.name = name;
    }

    public String getKey() {
        return key;
    }


    public String getName() {
        return name;
    }

    public static String getText(String key) {
        if (key == null) {
            return null;
        }
        for (DeclareModuleEnum e : DeclareModuleEnum.values()) {
            if (e.getKey().equals(key)) {
                return e.getName();
            }
        }
        return null;
    }

}
